package com.hsmw.domain;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hsmw.common.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 司机审核表
 * </p>
 *
 * @author WD
 * @since 2021-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "HsmwAudit对象", description = "司机审核表")
public class HsmwAudit extends BaseModel {

	private static final long serialVersionUID = 1L;

	private Integer flag;

	@ApiModelProperty(value = "电话")
	private String username;

	@ApiModelProperty(value = "身份证号码")
	private String idCard;

	@ApiModelProperty(value = "姓名")
	private String name;

	@ApiModelProperty(value = "用户表id")
	private String userId;

	@ApiModelProperty(value = "身份证正面图片")
	private String idCardFront;

	@ApiModelProperty(value = "身份证正面图片云存储ID")
	private String idCardFrontId;

	@ApiModelProperty(value = "身份证背面图片")
	private String idCardBack;

	@ApiModelProperty(value = "身份证背面图片云存储ID")
	private String idCardBackId;

	@ApiModelProperty(value = "驾照正本")
	private String drivingLicense;

	@ApiModelProperty(value = "驾照正本云存储ID")
	private String drivingLicenseId;

	@ApiModelProperty(value = "驾照副本")
	private String drivingLicenseCopy;

	@ApiModelProperty(value = "驾照副本云存储ID")
	private String drivingLicenseCopyId;

	@ApiModelProperty(value = "行驶证")
	private String travelLicense;

	@ApiModelProperty(value = "行驶证云存储ID")
	private String travelLicenseId;

	@ApiModelProperty(value = "行驶证附件")
	private String travelLicenseCopy;

	@ApiModelProperty(value = "行驶证附件云存储ID")
	private String travelLicenseCopyId;

	@ApiModelProperty(value = "车左侧45图片")
	private String vehicleLeftImage;

	@ApiModelProperty(value = "车左侧45图片云存储ID")
	private String vehicleLeftImageId;

	@ApiModelProperty(value = "车右侧45图片")
	private String vehicleRightImage;

	@ApiModelProperty(value = "车右侧45图片云存储ID")
	private String vehicleRightImageId;

	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "审核时间")
	private LocalDateTime auditTime;

	@ApiModelProperty(value = "审核状态：审核中、审核通过、审核拒绝")
	@TableField(updateStrategy = FieldStrategy.IGNORED )
	private String auditStatus;

	@ApiModelProperty(value = "审核拒绝备注")
	private String remark;

	@ApiModelProperty(value = "商业保险")
	private String commercialInsuranceImage;

	@ApiModelProperty(value = "商业保险云存储ID")
	private String commercialInsuranceImageId;

	@ApiModelProperty(value = "交强险")
	private String compuTrafficImage;

	@ApiModelProperty(value = "交强险云存储ID")
	private String compuTrafficImageId;

	@ApiModelProperty(value = "本人照片")
	private String myPicture;

	@ApiModelProperty(value = "本人照片云存储ID")
	private String myPictureId;

	@ApiModelProperty(value = "操作证图片")
	private String operationCertificate;

	@ApiModelProperty(value = "操作证图片云存储ID")
	private String operationCertificateId;

	@ApiModelProperty(value = "车牌号")
	private String vehiclePlate;

	@ApiModelProperty(value = "车辆类型")
	private String vehicleType;

	@ApiModelProperty(value = "审核人id")
	private String auditId;


	@ApiModelProperty(value = "审核人姓名")
	private String auditName;

	@ApiModelProperty(value = "通知消息")
	private String message;

	@ApiModelProperty(value = " 车牌型号 ")
	private String vehicleModel;

	@ApiModelProperty(value = " 车牌品牌 ")
	private String vehicleBrand;

	@ApiModelProperty(value = "查询参数 司机姓名或者车牌号")
	@TableField(exist = false)
	String queryParam;

	@ApiModelProperty(value = "车辆是否存在")
	@TableField(exist = false)
	boolean isExists;


}
